package com.mystore.dao;

import com.mystore.vo.UserVO;

import java.sql.Connection;
import java.sql.SQLException;

public interface UserDao {

    /**
     * 通过用户名查找用户信息
     * @param username
     * @param connection
     * @return
     */
    Object findByUsername(String username, Connection connection);


    /**
     * 保存用户信息
     * @param userVO
     * @param connection
     * @return
     * @throws SQLException
     */
    Boolean save(UserVO userVO,Connection connection) throws SQLException;
}
